<div class="layui-fluid">
  <style>
    .layui-table-tool,.layui-table-column.layui-table-page,.layui-table-main{
      background-color: white;
    }
    .layui-radio-disabled>i {
      color: #16b777 !important;
    }
  </style>
  <fieldset class="layui-elem-field layui-bg-white">
    <legend></legend>
    <div class="layui-field-box">
      <div  class="layui-form layui-row layui-col-space16 search-criteria" lay-filter="reset-val-filter">
        <div class="layui-col-md3">
          <div class="layui-input-wrap">
            <input type="text" name="fromMail" placeholder="发送邮箱" class="layui-input" lay-affix="clear" lay-filter="clear">
          </div>
        </div>
        <div class="layui-col-md3">
          <div class="layui-input-wrap">
            <input type="text" name="toMail" placeholder="接收邮箱" class="layui-input" lay-affix="clear" lay-filter="clear">
          </div>
        </div>
        <div class="layui-col-md3">
          <div class="layui-input-wrap">
            <input type="text" name="templateCode" placeholder="模板编码" class="layui-input" lay-affix="clear" lay-filter="clear">
          </div>
        </div>
        <div class="layui-col-md3">
          <div class="layui-input-wrap">
            <input type="text" name="templateTitle" placeholder="邮件标题" class="layui-input" lay-affix="clear" lay-filter="clear">
          </div>
        </div>
        <div class="layui-col-md3 hide-input">
          <div class="layui-input-wrap">
            <input type="text" name="templateNickname" placeholder="发送人名称" class="layui-input" lay-affix="clear" lay-filter="clear">
          </div>
        </div>
        <div class="layui-col-md3 hide-input">
          <div class="layui-input-wrap">
            <div class="dict-module" type="select"  dict-type="system_sms_send_status" name="sendStatus" title="发送状态"></div>
          </div>
        </div>

        <div class="layui-btn-container layui-col-md12" style="text-align: center">
          <button class="layui-btn layui-btn-sm" lay-submit lay-filter="table-search">查询</button>
          <button id="reset" class="layui-btn layui-btn-sm layui-btn-primary">重置</button>
          <button class="layui-btn layui-btn-sm layui-btn-primary layui-hide" onclick="showInput(this)">
            <i class="layui-icon layui-icon-down"></i>
          </button>
        </div>
      </div>
    </div>
  </fieldset>
  <table class="layui-hide" id="email-log-list" lay-filter="email-log-list"></table>
  <script id="emailToolbar" type="text/html">
    <div class="layui-btn-container">
    </div>
  </script>
  <script id="barDemo" type="text/html">
    <div class="layui-clear-space">
      <a class="layui-btn layui-btn-xs layui-btn-link" lay-event="view">查看</a>
      <a class="layui-btn layui-btn-xs layui-btn-link" lay-event="del">删除</a>
    </div>
  </script>
  <script type="text/html" id="email-log-form">
    <div class="layui-form" lay-filter="email-log-form" id="lay-email-log-form" style="margin: 15px 40px 15px 10px;">
      <input type="hidden" name="id">
      <div class="layui-form-item">
        <label class="layui-form-label">邮箱</label>
        <div class="layui-input-block">
          <input type="text" name="mail" disabled value=""  placeholder="请输入" lay-verify="email" lay-vertype="tips" autocomplete="off" class="layui-input">
        </div>
      </div>
      <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-block">
          <input type="text" name="username" disabled value=""  placeholder="请输入" lay-verify="required" lay-vertype="tips" autocomplete="off" class="layui-input">
        </div>
      </div>
      <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-block">
          <input type="password" name="password" disabled lay-verify="required" placeholder="密码" autocomplete="off" lay-vertype="tips" lay-affix="eye" class="layui-input">
        </div>
      </div>
      <div class="layui-form-item">
        <label class="layui-form-label">服务器域名</label>
        <div class="layui-input-block ">
<!--          <input type="text" name="host" lay-verify="required" placeholder="服务器域名" autocomplete="off" lay-vertype="tips"  class="layui-input">-->
            <select name="host" lay-append-to="body" lay-append-position="fixed" disabled>
              <option value=""></option>
            </select>
        </div>
      </div>
      <div class="layui-form-item">
        <label class="layui-form-label">启用SSL</label>
        <div class="layui-input-block">
          <input type="checkbox" name="sslEnable" value="true" disabled lay-skin="switch" lay-filter="ssl" title="开启|关闭">
        </div>
      </div>
      <div class="layui-form-item">
        <label class="layui-form-label">启用TLS</label>
        <div class="layui-input-block">
          <input type="checkbox" name="starttlsEnable" value="true" disabled lay-skin="switch" lay-filter="tls" title="开启|关闭">
        </div>
      </div>
      <div class="layui-form-item">
        <label class="layui-form-label">服务器端口</label>
        <div class="layui-input-block">
          <div class="dict-module" type="radio" isEdit="0" verify="required" dict-type="system_emile_port" name="port" city="25"></div>
<!--          <input type="number" name="port" lay-verify="required" placeholder="服务器端口" autocomplete="off" lay-vertype="tips"  class="layui-input">-->
        </div>
      </div>


    </div>
  </script>
</div>

<script type="text/javascript">
  {{#
    top.tools.loadscripts(["/js/page/message-management-center/emailLog.js"],function (){
      templateViewInit();
    });
  }}
</script>